package dongshi.daddy.abstractfactory;

import dongshi.daddy.abstractfactory.factory.AbstractFactory;
import dongshi.daddy.abstractfactory.factory.BicycleFactory;
import dongshi.daddy.abstractfactory.factory.CarFactory;
import dongshi.daddy.abstractfactory.factory.PlaneFactory;
import dongshi.daddy.abstractfactory.product.car.Car;

public class AbstractfactoryTest {
    public static void main(String[] args) {
        CarFactory carFactory = new CarFactory();
        carFactory.createProduct().sayHi();

        System.out.println("----------");

        BicycleFactory bicycleFactory = new BicycleFactory();
        bicycleFactory.createProduct().sayHi();

        System.out.println("----------");

        PlaneFactory planeFactory = new PlaneFactory();
        planeFactory.createProduct().sayHi();
    }
}
